oracle

推荐列表 站点导航

当前位置:首页 > 数据库 > oracle >

六分钟学会创建Oracle表空间的实现步骤

来源:网络整理  作者:网络  发布时间:2020-12-12 14:45
这里介绍创建Oracle表空间的步骤,首先查询空闲空间、增加Oracle表空间、修改文件大小语句如下、创建Oracle表空间,...
datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M

复制代码 代码如下:

extent management local uniform size 500K;

create tablespace sales

datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M

复制代码 代码如下:


为表空间增加数据文件:
create tablespace sales


复制代码 代码如下:

'/home/app/oracle/oradata/oracle8i/sales02.dbf'

autoextend on next 50M
maxsize unlimited


maxsize 1000M

为表空间增加数据文件:

autoextend on
maxsize 1000M

temporary;
next 50M

2、增加Oracle表空间

autoextend on
temporary创建字典管理临时表空间
create tablespace test
'resize 800M;
extent management local uniform;

create tablespace sales
alter database datafile
datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M
autoextend on

5、更改自动扩展属性:


next 50M
select tablespace_name,file_id,bytes,file_name from dba_data_files;
unform表示区的大小相同,默认为1M

复制代码 代码如下:

maxsize 10M;

maxsize unlimited 是大小不受限制
maxsize 1000M
datafile '/home/app/oracle/oradata/oracle8i/test01.dbf' size 8M

以上介绍创建Oracle表空间,在这里拿出来和大家分享一下,希望对大家有用。


maxsize 1000M
autoallocate表示区的大小由随表的大小自动动态改变,大表使用大区小表使用小区
alter tablespace sales add
autoextend on
创建本地管理临时表空间,如果是临时表空间,所有语句中的datafile都换为tempfile
maxsize 1000M;
extent management local autoallocate;
next 5M
unform size 500K表示区的大小相同,为500K

创建本地管理临时Oracle表空间,如果是临时表空间,所有语句中的datafile都换为tempfile8i系统默认创建字典管理临时表空间,要创建本地管理临时表空间要加temporary tablespace关键字创建本地管理临时表空间时,不得使用atuoallocate参数,系统默认创建uniform管理方式

next 50M

datafile '/home/app/oracle/oradata/oracle8i/sales02.dbf' size 800M
'/home/app/oracle/oradata/oracle8i/sales01.dbf',

'/home/app/oracle/oradata/oracle8i/sales01.dbf
select tablespace_name,file_id,block_id,bytes,blocks from dba_free_space;
autoextend on
datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M

maxsize 1000M;
create temporary tablespace sales
datafile '/home/app/oracle/oradata/oracle8i/sales02.dbf' size 800M
autoextend on
next 50M
next 50M

先查询数据文件名称、大小和路径的信息,语句如下:

3、修改文件大小语句如下

alter tablespace sales add

复制代码 代码如下:

maxsize 1000M


next 50M
创建本地管理临时表空间时,不得使用atuoallocate参数,系统默认创建uniform管理方式

复制代码 代码如下:

'需要增加的数据文件路径,即上面查询出来的路径

datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M


alter database datafile
autoextend on next 50M
create tablespace sales
create tablespace sales
autoextend off;

autoextend on
8i系统默认创建字典管理临时表空间,要创建本地管理临时表空间要加temporary tablespace关键字
tempfile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M

1、先查询空闲空间

4、创建Oracle表空间

相关热词: oracle

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/sql/oracle/2962.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

六分钟学会创建Oracle表空间的实现步骤

2020-12-12 编辑:网络

datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M

复制代码 代码如下:

extent management local uniform size 500K;

create tablespace sales

datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M

复制代码 代码如下:


为表空间增加数据文件:
create tablespace sales


复制代码 代码如下:

'/home/app/oracle/oradata/oracle8i/sales02.dbf'

autoextend on next 50M
maxsize unlimited


maxsize 1000M

为表空间增加数据文件:

autoextend on
maxsize 1000M

temporary;
next 50M

2、增加Oracle表空间

autoextend on
temporary创建字典管理临时表空间
create tablespace test
'resize 800M;
extent management local uniform;

create tablespace sales
alter database datafile
datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M
autoextend on

5、更改自动扩展属性:


next 50M
select tablespace_name,file_id,bytes,file_name from dba_data_files;
unform表示区的大小相同,默认为1M

复制代码 代码如下:

maxsize 10M;

maxsize unlimited 是大小不受限制
maxsize 1000M
datafile '/home/app/oracle/oradata/oracle8i/test01.dbf' size 8M

以上介绍创建Oracle表空间,在这里拿出来和大家分享一下,希望对大家有用。


maxsize 1000M
autoallocate表示区的大小由随表的大小自动动态改变,大表使用大区小表使用小区
alter tablespace sales add
autoextend on
创建本地管理临时表空间,如果是临时表空间,所有语句中的datafile都换为tempfile
maxsize 1000M;
extent management local autoallocate;
next 5M
unform size 500K表示区的大小相同,为500K

创建本地管理临时Oracle表空间,如果是临时表空间,所有语句中的datafile都换为tempfile8i系统默认创建字典管理临时表空间,要创建本地管理临时表空间要加temporary tablespace关键字创建本地管理临时表空间时,不得使用atuoallocate参数,系统默认创建uniform管理方式

next 50M

datafile '/home/app/oracle/oradata/oracle8i/sales02.dbf' size 800M
'/home/app/oracle/oradata/oracle8i/sales01.dbf',

'/home/app/oracle/oradata/oracle8i/sales01.dbf
select tablespace_name,file_id,block_id,bytes,blocks from dba_free_space;
autoextend on
datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M

maxsize 1000M;
create temporary tablespace sales
datafile '/home/app/oracle/oradata/oracle8i/sales02.dbf' size 800M
autoextend on
next 50M
next 50M

先查询数据文件名称、大小和路径的信息,语句如下:

3、修改文件大小语句如下

alter tablespace sales add

复制代码 代码如下:

maxsize 1000M


next 50M
创建本地管理临时表空间时,不得使用atuoallocate参数,系统默认创建uniform管理方式

复制代码 代码如下:

'需要增加的数据文件路径,即上面查询出来的路径

datafile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M


alter database datafile
autoextend on next 50M
create tablespace sales
create tablespace sales
autoextend off;

autoextend on
8i系统默认创建字典管理临时表空间,要创建本地管理临时表空间要加temporary tablespace关键字
tempfile '/home/app/oracle/oradata/oracle8i/sales01.dbf' size 800M

1、先查询空闲空间

4、创建Oracle表空间

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/sql/oracle/2962.shtml

相关文章

风云图片

推荐阅读

返回oracle频道首页